<!DOCTYPE html>
<html lang="zh">
<head>
<title>仓库管理 | OMS</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Thu, 19 Nov 1900 08:52:00 GMT" />

<!-- 加载 bootstrap 样式-->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/font-awesome/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap/css/bootstrap.min.css" />

<!-- 加载本页需要的三方插件样式 -->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/jquery.dataTables.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/extensions/TableTools/css/dataTables.tableTools.min.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/dataTables.bootstrap.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-tablesorter/themes/blue/style-custom.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-bootstrap-wizard/custom.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-steps/css/jquery.steps.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/animate.css/animate.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/iCheck/skins/all.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css">

<!-- 加载主题风格样式 -->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" class="default-style" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" id="theme-change"
    class="style-change color-change" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/style-responsive.css" />
</head>
<body class="">
    <!--BEGIN CONTENT-->
    <div class="page-content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 col-xs-8 col-sm-8 col-md-8" style="line-height:36px;">
                    <div class="actions">
                                <a href="#" class="btn btn-xs btn-info" data-toggle="modal" data-target="" onclick="addStor()"> <i
                                    class="fa"></i>&nbsp;新建
                                </a>&nbsp; <a href="#" class="btn btn-xs btn-info" data-toggle="" data-target="" onclick="updateStor()"> <i
                                    class="fa"></i>&nbsp;修改
                                </a>&nbsp; 
                                <a href="#" class="btn btn-danger btn-xs" data-toggle="" data-target=""
                                      onclick="deleteStor()"> <i class="fa fa-trash-o"></i>&nbsp;删除</a>
                            </div>
                </div>
                <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4" style="margin-bottom: 10px;">
                    <div class="input-group">
                        <input id="quickSearch" type="text" placeholder="仓库名称" class="form-control" value="" /> <span class="input-group-btn">
                            <button id="btnQuickSearch" type="button" class="btn btn-primary">
                                <i class="fa fa-search"></i>
                            </button>
                            <button id="btnAdvSearch" type="button" class="btn btn-default btn-adv-search">
                                <i class="fa fa-angle-double-down" style="font-size: 20px; color: white;"></i>
                            </button>
                        </span>
                    </div>
                </div>
            </div>
            <div class="panel panel-default" id="advSearchPanel" style="position: fixed; Z-index: 9999; width: 95%;display:none;">
                <div class="panel-body">
                    <form id="frmAdvSearch" role="form" action="" class="form-horizontal advance-query">
                        <div class="row">

                            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4">
                                <div class="form-group">
                                    <label for="gstorname" class="col-sm-4 col-lg-4 col-xs-4 col-md-4 control-label">仓库名称&nbsp;</label>
                                    <div class="col-sm-8 col-lg-8 col-xs-8 col-md-8">
                                        <input id="gstorname" name="gstorname" type="text" placeholder="仓库名称" minlength="1" maxlength="200"
                                            class="form-control forsubmiteq" fieldname="item.user_account" fieldtype="string" fieldoperator="and" />
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4">
                                <div class="form-group">
                                    <label for="gstorcode" class="col-sm-4 col-lg-4 col-xs-4 col-md-4 control-label">仓库编码 &nbsp;</label>
                                    <div class="col-sm-8 col-lg-8 col-xs-8 col-md-8">
                                        <input id="gstorcode" name="gstorcode" type="text" placeholder="仓库编码" minlength="1" maxlength="200"
                                            class="form-control forsubmiteq" fieldname="item.user_account" fieldtype="string" fieldoperator="and" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-12 col-lg-12 col-xs-12 col-md-12 text-right">
                                <button type="reset" id="advSearchReset" name="advSearchReset" class="btn btn-default">重置</button>
                                <button type="button" id="advSearchSubmit" name="advSearchSubmit" class="btn btn-primary">查询</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="portlet box portlet-blue" style="margin-bottom: 15px;">
                        <div class="portlet-header">
                            <div class="caption">仓库列表</div>
                            <!-- <div class="actions">
                                <a href="#" class="btn btn-xs btn-warning" data-toggle="modal" data-target="" onclick="addStor()"> <i
                                    class="fa fa-plus"></i>&nbsp;新建
                                </a>&nbsp; <a href="#" class="btn btn-xs btn-warning" data-toggle="" data-target="" onclick="updateStor()"> <i
                                    class="fa fa-edit"></i>&nbsp;修改
                                </a>&nbsp;
                                <a href="#" class="btn btn-danger btn-xs" data-toggle="" data-target=""
                                      onclick="deleteStor()"> <i class="fa fa-trash-o"></i>&nbsp;删除
                        </a>&nbsp;
                            </div> -->
                        </div>
                        <div class="portlet-body">
                            <table id="storTable" class="table table-hover table-striped table-bordered table-advanced tb-sticky-header"
                                width="100%">
                                <thead>
                                    <tr>
                                        <th style="width: 1%; padding: 10px;"><input id="chkAll" name="chkAll" type="checkbox" style="display:none;"
                                            colValue="chk" class="checkall" /></th>
                                        <th width="30%" colValue="storName">仓库名称</th>
                                        <th width="30%" colValue="storCode">仓库编码</th>
                                        <th width="30%" colValue="storType">仓库类型</th>
                                        <th width="30%" colValue="storModel">仓库模式</th>
                                        <th width="15%" colValue="tel">电话</th>
                                        <th width="20%" colValue="mobile">手机</th>
                                        <th width="4%" colValue="operation">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div id="creatStor" storid="" tabindex="-1" role="dialog" aria-labelledby="modal-header-primary-label" data-backdrop="static"
        aria-hidden="true" class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header modal-header-primary">
                    <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                    <h4 id="modal-header-primary-label" class="modal-title">
                        <span id="createTitle">新建仓库</span>
                    </h4>
                </div>
                <div class="modal-body">
                    <form id="storDetailForm" role="form" action="" class="form-horizontal">
                        <div class="form-group">
                            <label for="txtStorName" class="col-sm-3 control-label">仓库名称&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="txtStorName" name="txtStorName" type="text" placeholder="" required maxlength="32"
                                    class="form-control  invalid " /> <i class="alert alert-hide">项目是必选项！</i>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtStorCode" class="col-sm-3 control-label">仓库编码&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="txtStorCode" name="txtStorCode" type="text" placeholder="" maxlength="50" required
                                    class="form-control " />
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="storType" class="col-sm-3 control-label">仓库类型 <span class='require'>*</span></label>
                            <div class="col-sm-9 ">
                                <select id="storType" name="storType" class="form-control required">
                                    <option value="">请选择</option>
                                    <option value="local">本地库</option>
                                    <!-- <option value="ext">第三方</option> -->
                                </select>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="storModel" class="col-sm-3 control-label">仓库模式 <span class='require'>*</span></label>
                            <div class="col-sm-9 ">
                                <select id="storModel" name="storModel" class="form-control required">
                                    <option value="">请选择</option>
                                    <!-- <option value="qm">奇门</option> -->
                                    <option value="normal">其它</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="provName" class="col-sm-3 control-label">省 <span class='require'>*</span></label>
                            <div class="col-sm-9 ">
                                <select id="provName" name="provName" class="form-control required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="cityName" class="col-sm-3 control-label">市 <span class='require'>*</span></label>
                            <div class="col-sm-9">
                                <select id="cityName" name="cityName" class="form-control required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="distName" class="col-sm-3 control-label">区 &nbsp;</label>
                            <div class="col-sm-9">
                                <select id="distName" name="distName" class="form-control">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="txtTel" class="col-sm-3 control-label">电话&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="txtTel" name="txtTel" type="text" placeholder="例如：0411-84655499,04114655499" maxlength="50" required
                                    class="form-control telValidate" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtMobile" class="col-sm-3 control-label">手机&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="txtMobile" name="txtMobile" type="text" placeholder="例如：15940909333" placeholder="" maxlength="255"
                                    required class="form-control integerValidate" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtAddr" class="col-sm-3 control-label">地址&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="txtAddr" name="txtAddr" type="text" placeholder="" maxlength="255" required class="form-control " />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtPostcode" class="col-sm-3 control-label">邮编&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="txtPostcode" name="txtPostcode" type="text" placeholder="" maxlength="32" required
                                    class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtAreacode" class="col-sm-3 control-label">地区码&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="txtAreacode" name="txtAreacode" type="text" placeholder="" maxlength="32" required
                                    class="form-control " />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtRemark" class="col-sm-3 control-label">备注&nbsp; </label>
                            <div class="col-sm-9">
                                <input id="txtRemark" name="txtRemark" type="text" placeholder="" maxlength="255" class="form-control " />
                            </div>
                        </div>
                        <input id="storId" type="hidden" value="" />
                        <input id="storName" type="hidden" value="" />
                        <input id="storCode" type="hidden" value="" />
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                    <button id="storSave" type="button" class="btn btn-primary">保存</button>
                </div>
            </div>
        </div>
    </div>

    <div id="storParamSetting" storid="" tabindex="-1" role="dialog" aria-labelledby="modal-header-primary-label" data-backdrop="static"
        aria-hidden="true" class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header modal-header-primary">
                    <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                    <h4 id="modal-header-primary-label" class="modal-title">
                        <span id="createTitle">仓库参数设置</span>
                    </h4>
                </div>
                <div class="modal-body">
                    <form id="storParamForm" role="form" action="" class="form-horizontal">
                        <div class="form-group">
                            <label for="qmCustomerid" class="col-sm-3 control-label">奇门货主Id&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="qmCustomerid" name="qmCustomerid" type="text" placeholder="" required maxlength="32"
                                    class="form-control" /> <i class="alert alert-hide">奇门货主Id是必选项！</i>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="qmOwnercode" class="col-sm-3 control-label">奇门货主编码&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="qmOwnercode" name="qmOwnercode" type="text" placeholder="" required maxlength="32"
                                    class="form-control  invalid " /> <i class="alert alert-hide">奇门货主编码是必选项！</i>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="erpSecretkey" class="col-sm-3 control-label">奇门SecretKey&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="erpSecretkey" name="erpSecretkey" type="text" placeholder="" maxlength="50" required
                                    class="form-control" /> <i class="alert alert-hide">奇门SecretKey是必选项！</i>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="wmsAppkey" class="col-sm-3 control-label">奇门AppKey&nbsp;<span class='require'>*</span>
                            </label>
                            <div class="col-sm-9">
                                <input id="wmsAppkey" name="wmsAppkey" type="text" placeholder="" required maxlength="32" class="form-control" />
                                <i class="alert alert-hide">奇门AppKey是必选项！</i>
                            </div>
                        </div>
                        <input id="hideStorId" type="hidden" value="" />
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                    <button id="storParamSave" type="button" class="btn btn-primary">保存</button>
                </div>
            </div>
        </div>
    </div>

    <!--END CONTENT -->
    <!-- 加载 jquery js-->
    <script src="/Apollo/madmin/js/jquery-1.10.2.min.js"></script>
    <script src="/Apollo/madmin/js/jquery-migrate-1.2.1.min.js"></script>
    <script src="/Apollo/madmin/js/jquery-ui.js"></script>

    <!-- 加载 bootstrap 和三方插件 js -->
    <script src="/Apollo/madmin/vendors/bootstrap/js/bootstrap.min.js"></script>
    <script src="/Apollo/madmin/vendors/bootstrap-hover-dropdown/bootstrap-hover-dropdown.js"></script>
    <script src="/Apollo/madmin/js/html5shiv.js"></script>
    <script src="/Apollo/madmin/js/respond.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-cookie/jquery.cookie.js"></script>
    <script src="/Apollo/madmin/vendors/iCheck/icheck.min.js"></script>
    <script src="/Apollo/madmin/vendors/iCheck/custom.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-notific8/jquery.notific8.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-pace/pace.min.js"></script>
    <script src="/Apollo/madmin/vendors/holder/holder.js"></script>
    <script src="/Apollo/madmin/vendors/responsive-tabs/responsive-tabs.js"></script>
    <script src="/Apollo/madmin/vendors/moment/moment.js"></script>
    <script src="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/media/js/jquery.dataTables.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/media/js/dataTables.bootstrap.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-tablesorter/jquery.tablesorter.js"></script>
    <script src="/Apollo/madmin/js/table-advanced.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-validate/jquery.validate.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-validate/message_zh.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-steps/js/jquery.steps.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>

    <!-- 加载本页面对应的js -->
    <script src="/views/static/js/export.js"></script>
    <script src="/views/static/js/form.js"></script>
    <script src="StorageList.js"></script>
</body>
</html>